<div class="layui-card-body">
    <form class="layui-form" action="{:url()}" style="width: 700px;height: 500px" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-block">
                <select name="project_id" xm-select="project" xm-select-radio  xm-select-search="{:url('list_project')}"  >
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">登录名称</label>
            <div class="layui-input-block">
                <select name="uid" xm-select="uid" xm-select-radio  xm-select-search="{:url('list_user')}"  >
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户类型</label>
            <div class="layui-input-block">
                <select name="user_type" lay-search lay-filter="user_type">
                    <option value="">选择用户类型状态</option>
                    <volist name="user_type" id="vo" key="k">
                        <option value="{$k}"> {$vo}</option>
                    </volist>
                </select>
            </div>
        </div>

    </form>

</div>
<link rel="stylesheet" href="https://cdn.weibuyun.com/static/admin/plugins/formSelects-v4.css">

<script type="text/javascript">
    layui.use(['form', 'layer', 'formSelects', 'upload'], function () {
        var form = layui.form
            , formSelects = layui.formSelects
            , $ = layui.$
            , upload = layui.upload
            , laydate = layui.laydate;

        laydate.render({
            elem: '#s_time'

        });
        laydate.render({
            elem: '#e_time'

        });
        formSelects.config('project', {
            clearInput: true,          //当有搜索内容时, 点击选项是否清空搜索内容, 默认不清空
            keyVal: 'id',
            keyName: 'title',
            success: function (id, url, searchVal, result) {      //使用远程方式的success回调

            },

        });
        formSelects.config('uid', {
            clearInput: true,          //当有搜索内容时, 点击选项是否清空搜索内容, 默认不清空
            keyVal: 'id',
            keyName: 'nickname',
            success: function (id, url, searchVal, result) {      //使用远程方式的success回调

            },

        });
        //formSelects.value('manage_id', []);

    });
</script>






